import 'package:xin_he/generated/json/base/json_field.dart';
import 'package:xin_he/generated/json/xin_he_adopt_tree_model_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class XinHeAdoptTreeModelEntity {
	int? adoptedYear;
	int? consumerGoldRedEnvelope;
	String? createTime;
	int? fCreateUserId;
	int? fUpdateUserId;
	String? iconPath;
	int? id;
	String? name;
	double? price;
	String? remark;
	int? removed;
	int? teaOilCard;
	String? updateTime;
	@JSONField(name: "version_num")
	int? versionNum;
	int? yunChaSeed;
	int? num;

	XinHeAdoptTreeModelEntity();

	factory XinHeAdoptTreeModelEntity.fromJson(Map<String, dynamic> json) => $XinHeAdoptTreeModelEntityFromJson(json);

	Map<String, dynamic> toJson() => $XinHeAdoptTreeModelEntityToJson(this);

	XinHeAdoptTreeModelEntity copyWith({int? adoptedYear, int? consumerGoldRedEnvelope, String? createTime, int? fCreateUserId, int? fUpdateUserId, String? iconPath, int? id, String? name, double? price, String? remark, int? removed, int? teaOilCard, String? updateTime, int? versionNum, int? yunChaSeed,int? num}) {
		return XinHeAdoptTreeModelEntity()
			..adoptedYear= adoptedYear ?? this.adoptedYear
			..consumerGoldRedEnvelope= consumerGoldRedEnvelope ?? this.consumerGoldRedEnvelope
			..createTime= createTime ?? this.createTime
			..fCreateUserId= fCreateUserId ?? this.fCreateUserId
			..fUpdateUserId= fUpdateUserId ?? this.fUpdateUserId
			..iconPath= iconPath ?? this.iconPath
			..id= id ?? this.id
			..name= name ?? this.name
			..price= price ?? this.price
			..remark= remark ?? this.remark
			..removed= removed ?? this.removed
			..teaOilCard= teaOilCard ?? this.teaOilCard
			..updateTime= updateTime ?? this.updateTime
			..versionNum= versionNum ?? this.versionNum
			..yunChaSeed= yunChaSeed ?? this.yunChaSeed
			..num= yunChaSeed ?? this.num;

	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}